google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2023-12-28',null,null,null,null,null], ['2023-12-29',374394,null,null,null,null], ['2023-12-30',374394,null,null,null,null], ['2023-12-31',374394,null,null,null,null], ['2024-01-01',374394,null,null,null,null], ['2024-01-02',374394,null,null,null,null], ['2024-01-03',374394,null,null,null,null], ['2024-01-04',374394,null,null,null,null], ['2024-01-05',374394,null,null,null,null], ['2024-01-06',374752,null,null,null,null], ['2024-01-07',374752,null,null,null,null], ['2024-01-08',374752,null,null,null,null], ['2024-01-09',374752,null,null,null,null], ['2024-01-10',374752,null,null,null,null], ['2024-01-11',374752,null,null,null,null], ['2024-01-12',375039,null,120,null,null], ['2024-01-13',375039,null,160,null,null], ['2024-01-14',375039,null,null,null,null], ['2024-01-15',375039,null,179,null,null], ['2024-01-16',375039,null,null,null,null], ['2024-01-17',375039,null,null,null,null], ['2024-01-18',375039,null,null,null,null], ['2024-01-19',375457,null,null,null,null], ['2024-01-20',375540,null,null,null,null], ['2024-01-21',375540,null,null,null,null], ['2024-01-22',375540,null,null,null,null], ['2024-01-23',375540,null,null,null,null], ['2024-01-24',375545,null,null,null,null], ['2024-01-25',375545,null,null,null,null], ['2024-01-26',375545,null,null,null,null], ['2024-01-27',375737,null,null,null,null], ['2024-01-28',375737,null,null,null,null], ['2024-01-29',375737,null,null,null,null], ['2024-01-30',376018,null,null,null,null], ['2024-01-31',376652,null,null,null,null], ['2024-02-01',376694,null,null,null,null], ['2024-02-02',376870,null,null,null,null], ['2024-02-03',376952,null,null,null,null], ['2024-02-04',376952,null,null,null,null], ['2024-02-05',377014,null,null,null,null], ['2024-02-06',377104,null,null,null,null], ['2024-02-07',377186,null,null,null,null], ['2024-02-08',377233,null,null,null,null], ['2024-02-09',377302,null,null,null,null], ['2024-02-10',377362,null,null,null,null], ['2024-02-11',377425,null,null,null,null], ['2024-02-12',377520,null,null,null,null], ['2024-02-13',377621,null,null,null,null], ['2024-02-14',377726,null,null,null,null], ['2024-02-15',377789,null,null,null,null], ['2024-02-16',377810,null,null,null,null], ['2024-02-17',377810,null,null,null,null], ['2024-02-18',377810,null,null,null,null], ['2024-02-19',377932,null,null,null,null], ['2024-02-20',377932,null,null,null,null], ['2024-02-21',378060,null,null,null,null], ['2024-02-22',378112,null,null,null,null], ['2024-02-23',378112,null,null,null,null], ['2024-02-24',378141,null,null,null,null], ['2024-02-25',378184,null,null,null,null], ['2024-02-26',378232,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:200}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });